<html>
<head>
<title>
</title>
<script src="http://www.google.com/jsapi?key=ABQIAAAAW6ZkayH6hhgMyC2y6LQx8xQkRs_WW3LuT_BxsclnnM2SXBs4HxSp2Ukg-tY3gZU6rw7kePxNiNAS9Q" type="text/javascript"></script>
<script>
google.load("search", "1"); //Aqui esta la clave para que se cargue la barra de busqueda sin tener que invocarla fuera de este js

 function OnLoad() {
      // Create a search control
     var searchControl = new google.search.SearchControl();

      // Add in a full set of searchers
	//     var localSearch = new google.search.LocalSearch();
    //    searchControl.addSearcher(localSearch);
      searchControl.addSearcher(new google.search.WebSearch());
	//   searchControl.addSearcher(new google.search.VideoSearch());
	//    searchControl.addSearcher(new google.search.BlogSearch());

    // Set the Local Search center point
	//   localSearch.setCenterPoint("Spain, SP");

      // Tell the searcher to draw itself and tell it where to attach 
      searchControl.draw(document.getElementById("buscador"));
     // searchControl.execute("Google");
 }
  google.setOnLoadCallback(OnLoad);
</script>

</head>
<body onload = "OnLoad()">
 <div id="buscador">Loading...</div>

</body>
</html>